from tkinter import *

root = Tk()
v = IntVar()
c = Checkbutton(root, text='测试一下', variable=v)  # v用来存放选中状态
c.pack()
l = Label(root, textvariable=v)
l.pack()  # 未选中显示为0，选中显示1

mainloop()